package com.css.dzj.zfjg.modules.statisticsa.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Objects;

/**
 * 信用评估结果统计-A
 * @author liyuan
 */
@Entity
@Table(name = "JG_XYJG_XYPGJGTJ_A", schema = "DZJZFJG", catalog = "")
public class Statisticsa {
    private String id;
    // 省、市、县级
    private String provincial;
    private String municipalLevel;
    private String countyLevel;
    // 国标一、二、三级行业名称
    private String nationalStandard1Name;
    private String nationalStandard2Name;
    private String nationalStandard3Name;
    // 国办信用分级标准 A-E 类企业个数
    private String nationalStandardANumber;
    private String nationalStandardBNumber;
    private String nationalStandardCNumber;
    private String nationalStandardDNumber;
    private String nationalStandardENumber;
    // 国办信用分级标准无评级企业个数
    private String nationalStandardNoNumber;
    // 国办信用分级标准A~E 类企业总个数
    private String nationalStandardAENumber;
    // 国办信用分级标准较上月信用分类上升企业个数
    private String nationalStandardCreditRiseNumber;
    // 国办信用分级标准较上月信用分类下降企业个数
    private String nationalStandardCreditDeclineNumber;
    // 国办信用分级标准A-E类企业比例
    private String nationalStandardAProportion;
    private String nationalStandardBProportion;
    private String nationalStandardCProportion;
    private String nationalStandardDProportion;
    private String nationalStandardEProportion;
    // 国办信用分级标准较上月信用分类上升企业比例
    private String nationalStandardCreditRiseProportion;
    // 国办信用分级标准较上月信用分类下降企业比例
    private String nationalStandardCreditDeclineProportion;

    @Id
    @Column(name = "ID")
    @GeneratedValue(generator = "idGenerator")
    @GenericGenerator(name = "idGenerator", strategy = "com.css.dzj.zfjg.common.util.SnowflakeId")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "Provincial")
    public String getProvincial() {
        return provincial;
    }

    public void setProvincial(String provincial) {
        this.provincial = provincial;
    }

    @Basic
    @Column(name = "Municipal_level")
    public String getMunicipalLevel() {
        return municipalLevel;
    }

    public void setMunicipalLevel(String municipalLevel) {
        this.municipalLevel = municipalLevel;
    }

    @Basic
    @Column(name = "County_level")
    public String getCountyLevel() {
        return countyLevel;
    }

    public void setCountyLevel(String countyLevel) {
        this.countyLevel = countyLevel;
    }

    @Basic
    @Column(name = "National_Standard_1_Name")
    public String getNationalStandard1Name() {
        return nationalStandard1Name;
    }

    public void setNationalStandard1Name(String nationalStandard1Name) {
        this.nationalStandard1Name = nationalStandard1Name;
    }

    @Basic
    @Column(name = "National_Standard_2_Name")
    public String getNationalStandard2Name() {
        return nationalStandard2Name;
    }

    public void setNationalStandard2Name(String nationalStandard2Name) {
        this.nationalStandard2Name = nationalStandard2Name;
    }

    @Basic
    @Column(name = "National_Standard_3_Name")
    public String getNationalStandard3Name() {
        return nationalStandard3Name;
    }

    public void setNationalStandard3Name(String nationalStandard3Name) {
        this.nationalStandard3Name = nationalStandard3Name;
    }

    @Basic
    @Column(name = "National_Standard_A_Number")
    public String getNationalStandardANumber() {
        return nationalStandardANumber;
    }

    public void setNationalStandardANumber(String nationalStandardANumber) {
        this.nationalStandardANumber = nationalStandardANumber;
    }

    @Basic
    @Column(name = "National_Standard_B_Number")
    public String getNationalStandardBNumber() {
        return nationalStandardBNumber;
    }

    public void setNationalStandardBNumber(String nationalStandardBNumber) {
        this.nationalStandardBNumber = nationalStandardBNumber;
    }

    @Basic
    @Column(name = "National_Standard_C_Number")
    public String getNationalStandardCNumber() {
        return nationalStandardCNumber;
    }

    public void setNationalStandardCNumber(String nationalStandardCNumber) {
        this.nationalStandardCNumber = nationalStandardCNumber;
    }

    @Basic
    @Column(name = "National_Standard_D_Number")
    public String getNationalStandardDNumber() {
        return nationalStandardDNumber;
    }

    public void setNationalStandardDNumber(String nationalStandardDNumber) {
        this.nationalStandardDNumber = nationalStandardDNumber;
    }

    @Basic
    @Column(name = "National_Standard_E_Number")
    public String getNationalStandardENumber() {
        return nationalStandardENumber;
    }

    public void setNationalStandardENumber(String nationalStandardENumber) {
        this.nationalStandardENumber = nationalStandardENumber;
    }

    @Basic
    @Column(name = "National_Standard_No_Number")
    public String getNationalStandardNoNumber() {
        return nationalStandardNoNumber;
    }

    public void setNationalStandardNoNumber(String nationalStandardNoNumber) {
        this.nationalStandardNoNumber = nationalStandardNoNumber;
    }

    @Basic
    @Column(name = "National_Standard_A_E_Number")
    public String getNationalStandardAENumber() {
        return nationalStandardAENumber;
    }

    public void setNationalStandardAENumber(String nationalStandardAENumber) {
        this.nationalStandardAENumber = nationalStandardAENumber;
    }

    @Basic
    @Column(name = "National_Standard_Credit_Rise_Number")
    public String getNationalStandardCreditRiseNumber() {
        return nationalStandardCreditRiseNumber;
    }

    public void setNationalStandardCreditRiseNumber(String nationalStandardCreditRiseNumber) {
        this.nationalStandardCreditRiseNumber = nationalStandardCreditRiseNumber;
    }

    @Basic
    @Column(name = "National_Standard_Credit_Decline_Number")
    public String getNationalStandardCreditDeclineNumber() {
        return nationalStandardCreditDeclineNumber;
    }

    public void setNationalStandardCreditDeclineNumber(String nationalStandardCreditDeclineNumber) {
        this.nationalStandardCreditDeclineNumber = nationalStandardCreditDeclineNumber;
    }

    @Basic
    @Column(name = "National_Standard_A_Proportion")
    public String getNationalStandardAProportion() {
        return nationalStandardAProportion;
    }

    public void setNationalStandardAProportion(String nationalStandardAProportion) {
        this.nationalStandardAProportion = nationalStandardAProportion;
    }

    @Basic
    @Column(name = "National_Standard_B_Proportion")
    public String getNationalStandardBProportion() {
        return nationalStandardBProportion;
    }

    public void setNationalStandardBProportion(String nationalStandardBProportion) {
        this.nationalStandardBProportion = nationalStandardBProportion;
    }

    @Basic
    @Column(name = "National_Standard_C_Proportion")
    public String getNationalStandardCProportion() {
        return nationalStandardCProportion;
    }

    public void setNationalStandardCProportion(String nationalStandardCProportion) {
        this.nationalStandardCProportion = nationalStandardCProportion;
    }

    @Basic
    @Column(name = "National_Standard_D_Proportion")
    public String getNationalStandardDProportion() {
        return nationalStandardDProportion;
    }

    public void setNationalStandardDProportion(String nationalStandardDProportion) {
        this.nationalStandardDProportion = nationalStandardDProportion;
    }

    @Basic
    @Column(name = "National_Standard_E_Proportion")
    public String getNationalStandardEProportion() {
        return nationalStandardEProportion;
    }

    public void setNationalStandardEProportion(String nationalStandardEProportion) {
        this.nationalStandardEProportion = nationalStandardEProportion;
    }

    @Basic
    @Column(name = "National_Standard_Credit_Rise_Proportion")
    public String getNationalStandardCreditRiseProportion() {
        return nationalStandardCreditRiseProportion;
    }

    public void setNationalStandardCreditRiseProportion(String nationalStandardCreditRiseProportion) {
        this.nationalStandardCreditRiseProportion = nationalStandardCreditRiseProportion;
    }

    @Basic
    @Column(name = "National_Standard_Credit_Decline_Proportion")
    public String getNationalStandardCreditDeclineProportion() {
        return nationalStandardCreditDeclineProportion;
    }

    public void setNationalStandardCreditDeclineProportion(String nationalStandardCreditDeclineProportion) {
        this.nationalStandardCreditDeclineProportion = nationalStandardCreditDeclineProportion;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Statisticsa that = (Statisticsa) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(provincial, that.provincial) &&
                Objects.equals(municipalLevel, that.municipalLevel) &&
                Objects.equals(countyLevel, that.countyLevel) &&
                Objects.equals(nationalStandard1Name, that.nationalStandard1Name) &&
                Objects.equals(nationalStandard2Name, that.nationalStandard2Name) &&
                Objects.equals(nationalStandard3Name, that.nationalStandard3Name) &&
                Objects.equals(nationalStandardANumber, that.nationalStandardANumber) &&
                Objects.equals(nationalStandardBNumber, that.nationalStandardBNumber) &&
                Objects.equals(nationalStandardCNumber, that.nationalStandardCNumber) &&
                Objects.equals(nationalStandardDNumber, that.nationalStandardDNumber) &&
                Objects.equals(nationalStandardENumber, that.nationalStandardENumber) &&
                Objects.equals(nationalStandardNoNumber, that.nationalStandardNoNumber) &&
                Objects.equals(nationalStandardAENumber, that.nationalStandardAENumber) &&
                Objects.equals(nationalStandardCreditRiseNumber, that.nationalStandardCreditRiseNumber) &&
                Objects.equals(nationalStandardCreditDeclineNumber, that.nationalStandardCreditDeclineNumber) &&
                Objects.equals(nationalStandardAProportion, that.nationalStandardAProportion) &&
                Objects.equals(nationalStandardBProportion, that.nationalStandardBProportion) &&
                Objects.equals(nationalStandardCProportion, that.nationalStandardCProportion) &&
                Objects.equals(nationalStandardDProportion, that.nationalStandardDProportion) &&
                Objects.equals(nationalStandardEProportion, that.nationalStandardEProportion) &&
                Objects.equals(nationalStandardCreditRiseProportion, that.nationalStandardCreditRiseProportion) &&
                Objects.equals(nationalStandardCreditDeclineProportion, that.nationalStandardCreditDeclineProportion);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, provincial, municipalLevel, countyLevel, nationalStandard1Name, nationalStandard2Name, nationalStandard3Name, nationalStandardANumber, nationalStandardBNumber, nationalStandardCNumber, nationalStandardDNumber, nationalStandardENumber, nationalStandardNoNumber, nationalStandardAENumber, nationalStandardCreditRiseNumber, nationalStandardCreditDeclineNumber, nationalStandardAProportion, nationalStandardBProportion, nationalStandardCProportion, nationalStandardDProportion, nationalStandardEProportion, nationalStandardCreditRiseProportion, nationalStandardCreditDeclineProportion);
    }
}
